package com.blockmeta.bbs.immodule.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ToggleButton;

/**
 * @author AirThor
 * @date 2019/4/16.
 */
public class NoPerformClickToggleButton extends ToggleButton {

    public NoPerformClickToggleButton(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public NoPerformClickToggleButton(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NoPerformClickToggleButton(Context context) {
        super(context);
    }

    @Override
    public boolean performClick() {
        toggle();
        return super.performClick();
    }
}
